package ym.ecrm.web.action.systemManagement;


import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import org.springframework.beans.factory.annotation.Autowired;

import ym.ecrm.core.common.util.Pager;
import ym.ecrm.core.dto.systemManagement.UserDTO;
import ym.ecrm.core.dto.systemManagement.UserQueryConditionDTO;
import ym.ecrm.core.service.systemManagement.ISystemService;
import ym.ecrm.web.action.base.BaseAction;

/**
 * 
 * @author Princess
 * 
 */
public class FindUserByOrganizationAction extends BaseAction {

	private long organizationId;
	private int page;
	private int limit;
	private Pager<UserDTO> pager;

	@Autowired
	private ISystemService systemService;

	public String execute() {
		pager = systemService.findUsersByOrganizationId(organizationId, page, limit);
		return proccess();
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public Pager<UserDTO> getPager() {
		return pager;
	}

	public void setPager(Pager<UserDTO> pager) {
		this.pager = pager;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public String getSuccess() {
		return success;
	}

	public long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(long organizationId) {
		this.organizationId = organizationId;
	}

}
